package site.yunnong.atvris.security.util;

import java.util.Calendar;
import java.util.Date;

/**
 * @author JinghaoZhang
 * @date 2021年-04月-13日
 */
public class DateUtil {

    public static Date offsetSecond(Date time, int offset) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(time);
        cal.add(Calendar.SECOND, offset);
        return cal.getTime();
    }
}
